package Control;

import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.stage.Stage;

import java.io.IOException;

public class ControlView {

    @FXML
    private Button btnAdd;

    @FXML
    private TextField addIdCode;

    @FXML
    private TableView<?> tableControlView;

    @FXML
    private TableColumn<?, ?> tableId;

    @FXML
    private TableColumn<?, ?> tableStayeTime;

    @FXML
    private TableColumn<?, ?> tableState;

    @FXML
    private Label currentPage1;

    @FXML
    private Button btnUpPage;

    @FXML
    private Button btnUpPage1;

    @FXML
    private Button btnOut;

    @FXML
    private Button btnDelete;

    @FXML
    void addIdCode(ActionEvent event) {

    }

    @FXML
    void btnAdd(ActionEvent event) {

    }

    @FXML
    void btnDelete(ActionEvent event) {

    }

    @FXML
    void btnOut(ActionEvent event) {

    }

    @FXML
    void btnUpPage(ActionEvent event) {

    }

    public static void showView() throws IOException {
        Stage HistoryStage = new Stage();
        Parent root = null;
        try {
            root = FXMLLoader.load(MyRunnable.class.getResource("ControlView.fxml"));
        }catch (Exception e){
            System.out.println("前端文件加载错误");
        }
        HistoryStage.setTitle("车辆管理记录");
        HistoryStage.setScene(new Scene(root,430,525));
        HistoryStage.show();
    }

}

